function ConfirmDelete(dir,FileName){
	var agree=confirm("Are you sure you want to delete this file?");
	if (agree)
	location.replace('index.cfm?c=filemanager&a=deletefile&FileName='+FileName+'&dir='+dir); 
	else
	return false ;
}

function ConfirmDeleteFolder(dir,FolderName){
	var agree=confirm("Are you sure you want to delete '" + FolderName + "' and everything in it!?");
	if (agree)
	location.replace('index.cfm?c=filemanager&a=deletefolder&showfolders=1&FolderName='+FolderName+'&dir='+dir); 
	else
	return false ;
}

function copyfiles() {
	resetbox(); 
	$('#dialog').load('dialogs/filemanager/copyfiles.cfm').dialog({modal: true,my: 'center',at: 'center',of: window,width: 400,height: 300,title:'Drop Shadow'});		
}